import random

balance = 10000     # 账户余额
for i in range(1,20):
    score = random.randint(1,10)
    if balance > 0:
        if score < 5:
            print(f"向员工 {i} 不满足资格，不发工资")
            continue
        else:
            balance = balance - 1000
            print(f"向员工 {i} 发放工资 1000 元，账户余额剩余 {balance} 元")
    else:
        print(f"员工{i}公司没钱了，下个月再发,哈哈哈哈哈哈哈哈哈!!!")
        break